import React, { Component } from 'react';
import { Routes, Route } from 'react-router-dom'
import List from '../HouseList';
import Index from '../Index';
import News from '../News'
import Profile from '../Profile';
import BottomNav from './BottomNav';


export default class Home extends Component {

  render() {
    return (
      <div>
        <Routes>
          <Route path='/' element={<Index />}></Route>
          <Route path='news' element={<News />}></Route>
          <Route path='list' element={<List />}></Route>
          <Route path='profile' element={<Profile />}></Route>
        </Routes>
        <BottomNav></BottomNav>
      </div>
    )

  }
}
